Page({
  data: {
    postId:{}
  },
  onLoad: function (option) {
    console.log(option);
    console.log(option.id)
    var postId=JSON.parse(option.id);
    this.setData({
      postId:postId
    })
    console.log(this.data.postId)
  },
  resumeExperience:function(){
    wx.navigateTo({
      url: '../resumeExperience/resumeExperience',
    })
  },
  relatedResume:function(){
    wx.navigateTo({
      url: '../relatedResume/relatedResume',
    })
  },
  onShareAppMessage: function (res) {
    var title = this.data.postId.department + " " + this.data.postId.job;
    if (res.from === 'button') {
      // 来自页面内转发按钮
      console.log(res.target)
    }
    return {
      title: title,
      path: '/page/user?id=123',
      success: function (res) {
        // 转发成功
      },
      fail: function (res) {
        // 转发失败
      }
    }
  }
})